Merge pull request #73 from romoloman/master
[openXsensor.git] / oXs_Configurator / Python 37 Sources / oxsGps.py
blob2c0bc1e5fcc3e1cb0d2ece537e5fbee8d9cbf6c9
1 from oxsConfig import ttk , W , E , fGps , gpsM10, gps3dExist , gpsTimeExist , gpsRateVar
3 #here start the definition of the GPS tab
4 #define GPS_SPEED_3D // uncomment this line if GPS speed has to be the 3d speed instead of the 2d speed (note: 3d is probably less accurate - to test)
5 #define GPS_REFRESH_RATE 5 // rate at which GPS sent new data; select between 1, 5 or 10 (Hz). Default = 5 Hz; Ublox NEO6 does not support 10 hz
6 ttk.Label(fGps, text="M9/M10" ).grid(column= 0, row=1, padx= (15,5), pady=5 , sticky=(E))
7 ttk.Checkbutton(fGps, variable=gpsM10,
8 onvalue='On', offvalue='Off').grid(column=1, row=1, sticky=('W','E') )
9 ttk.Label(fGps, text="3D speed" ).grid(column= 0, row=2, padx= (15,5), pady=5 , sticky=(E))
10 ttk.Checkbutton(fGps, variable=gps3dExist,
11 onvalue='On', offvalue='Off').grid(column=1, row=2, sticky=('W','E') )
12 ttk.Label(fGps, text="GET UTCTIME (S-Port only)" ).grid(column= 0, row=3, padx= (15,5), pady=5 , sticky=(E))
13 ttk.Checkbutton(fGps, variable=gpsTimeExist,
14 onvalue='On', offvalue='Off').grid(column=1, row=3, sticky=('W','E') )
15 ttk.Label(fGps, text="Refresh rate (Hz)").grid(column= 0, row=4, padx= (15,5), pady=5 , sticky=(E))
16 gpsRateBox = ttk.Combobox(fGps, textvariable=gpsRateVar,
17 values=('1', "5" , "10"),
18 state="readonly", width=2 )
19 gpsRateBox.grid(column=1, row=4, sticky=(W) )